﻿namespace dPet.Infrastructure.EntityFramework.ModelConfigurations
{
	using dPet.Domain.Models;
	using Hangerd.EntityFramework;

	public class InventoryLORecordConfig : EntityTypeConfigBase<InventoryLORecord>
	{
		public InventoryLORecordConfig()
		{
			Property(ilor => ilor.HospitalId)
				.IsRequired()
				.HasMaxLength(32);

			Property(ilor => ilor.ProductId)
				.IsRequired()
				.HasMaxLength(32);

			Property(ilor => ilor.ProductBarcode)
				.HasMaxLength(50);

			Property(ilor => ilor.ProductName)
				.HasMaxLength(50);

			Property(ilor => ilor.InventoryNumber)
				.IsRequired()
				.HasMaxLength(32);

			Property(ilor => ilor.Operator)
				.HasMaxLength(50);
		}
	}
}
